package com.ruoyi.system.service.impl;

import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.system.domain.SysPurchase;
import com.ruoyi.system.domain.SysStock;
import com.ruoyi.system.mapper.SysPurchaseMapper;
import com.ruoyi.system.mapper.SysStockMapper;
import com.ruoyi.system.service.ISysPurchaseService;
import com.ruoyi.system.service.ISysStockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 库存管理 服务实现
 * 
 * @author ruoyi
 */
@Service
public class SysPurchaseServiceImpl implements ISysPurchaseService
{
    @Autowired
    private SysPurchaseMapper purchaseMapper;


    @Override
    public List<SysPurchase> selectPurchaseList(SysPurchase purchase) {
        return purchaseMapper.selectPurchaseList(purchase);
    }

    @Override
    public int insertPurchase(SysPurchase purchase) {
        return purchaseMapper.insertSelective(purchase);
    }

    @Override
    public SysPurchase selectPurchaseById(Long purchaseId) {
        return null;
    }

    @Override
    public int updatePurchase(SysPurchase purchase) {
        return 0;
    }
}
